using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WMSSystem.Domain.Workflow
{
    /// <summary>
    /// WorkflowCore事件表
    /// </summary>
    public class WorkflowEvents
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Description("主键ID")]
        [MaxLength(64)]
        [Key]
        public string Id { get; set; }

        /// <summary>
        /// 事件名称
        /// </summary>
        [Description("事件名称")]
        [MaxLength(100)]
        public string EventName { get; set; }

        /// <summary>
        /// 事件键
        /// </summary>
        [Description("事件键")]
        [MaxLength(100)]
        public string EventKey { get; set; }

        /// <summary>
        /// 事件数据
        /// </summary>
        [Description("事件数据")]
        public string? EventData { get; set; }

        /// <summary>
        /// 事件时间
        /// </summary>
        [Description("事件时间")]
        public long EventTime { get; set; }

        /// <summary>
        /// 是否已处理
        /// </summary>
        [Description("是否已处理")]
        public bool IsProcessed { get; set; }
    }
} 